home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / complib / csteqr.z / csteqr
Encoding:
Text File  |  1998-10-30  |  3.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCSSSSTTTTEEEEQQQQRRRR((((3333FFFF))))                                                          CCCCSSSSTTTTEEEEQQQQRRRR((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CSTEQR - compute all eigenvalues and, optionally, eigenvectors of a
  10.      symmetric tridiagonal matrix using the implicit QL or QR method
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE CSTEQR( COMPZ, N, D, E, Z, LDZ, WORK, INFO )
  14.  
  15.          CHARACTER      COMPZ
  16.  
  17.          INTEGER        INFO, LDZ, N
  18.  
  19.          REAL           D( * ), E( * ), WORK( * )
  20.  
  21.          COMPLEX        Z( LDZ, * )
  22.  
  23. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  24.      CSTEQR computes all eigenvalues and, optionally, eigenvectors of a
  25.      symmetric tridiagonal matrix using the implicit QL or QR method.  The
  26.      eigenvectors of a full or band complex Hermitian matrix can also be found
  27.      if CHETRD or CHPTRD or CHBTRD has been used to reduce this matrix to
  28.      tridiagonal form.
  29.  
  30.  
  31. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  32.      COMPZ   (input) CHARACTER*1
  33.              = 'N':  Compute eigenvalues only.
  34.              = 'V':  Compute eigenvalues and eigenvectors of the original
  35.              Hermitian matrix.  On entry, Z must contain the unitary matrix
  36.              used to reduce the original matrix to tridiagonal form.  = 'I':
  37.              Compute eigenvalues and eigenvectors of the tridiagonal matrix.
  38.              Z is initialized to the identity matrix.
  39.  
  40.      N       (input) INTEGER
  41.              The order of the matrix.  N >= 0.
  42.  
  43.      D       (input/output) REAL array, dimension (N)
  44.              On entry, the diagonal elements of the tridiagonal matrix.  On
  45.              exit, if INFO = 0, the eigenvalues in ascending order.
  46.  
  47.      E       (input/output) REAL array, dimension (N-1)
  48.              On entry, the (n-1) subdiagonal elements of the tridiagonal
  49.              matrix.  On exit, E has been destroyed.
  50.  
  51.      Z       (input/output) COMPLEX array, dimension (LDZ, N)
  52.              On entry, if  COMPZ = 'V', then Z contains the unitary matrix
  53.              used in the reduction to tridiagonal form.  On exit, if INFO = 0,
  54.              then if COMPZ = 'V', Z contains the orthonormal eigenvectors of
  55.              the original Hermitian matrix, and if COMPZ = 'I', Z contains the
  56.              orthonormal eigenvectors of the symmetric tridiagonal matrix.  If
  57.              COMPZ = 'N', then Z is not referenced.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCSSSSTTTTEEEEQQQQRRRR((((3333FFFF))))                                                          CCCCSSSSTTTTEEEEQQQQRRRR((((3333FFFF))))
  71.  
  72.  
  73.  
  74.      LDZ     (input) INTEGER
  75.              The leading dimension of the array Z.  LDZ >= 1, and if
  76.              eigenvectors are desired, then  LDZ >= max(1,N).
  77.  
  78.      WORK    (workspace) REAL array, dimension (max(1,2*N-2))
  79.              If COMPZ = 'N', then WORK is not referenced.
  80.  
  81.      INFO    (output) INTEGER
  82.              = 0:  successful exit
  83.              < 0:  if INFO = -i, the i-th argument had an illegal value
  84.              > 0:  the algorithm has failed to find all the eigenvalues in a
  85.              total of 30*N iterations; if INFO = i, then i elements of E have
  86.              not converged to zero; on exit, D and E contain the elements of a
  87.              symmetric tridiagonal matrix which is unitarily similar to the
  88.              original matrix.
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.